<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%=title%></title>
  <style>
    div {
      width: 500px;
      margin: auto;
    }
    h2 {
      text-align: center;
      color:deeppink;
    }
    form {
      width: 200px;
      margin: auto;
    }
    form .btn {
      text-align: center;
    }
    form .btn input {
      cursor: pointer;
    }
  </style>
</head>
<body>
  <div>
    <h2><%=title%>学生</h2>
    <form action="save" method="post">
      <input type="hidden" name="_id" value="<%=user._id%>">
      <p>
        <span>姓名：</span>
        <input type="text" name="name" value="<%=user.name%>"/>
      </p>
      <p>
        <span>年龄：</span>
        <input type="text" name="age" value="<%=user.age%>"/>
      </p>
      <p>
        <span>性别：</span>
        <input type="text" name="sex" value="<%=user.sex%>"/>
      </p>
      <p class="btn">
        <input type="submit" value="确定"/>
        <input type="button" value="返回" onclick="javascript:window.location.href='/';"/>
      </p>
      <p>
        <span><%=msg%></span>
      </p>
    </form>
  </div>
</body>
</html>